<?php
/**
 * Created by PhpStorm.
 * User: ownfi
 * Date: 2017-04-11
 * Time: 20:00
 */

namespace App\Services;


use App\Models\Order;

interface IOrderService
{

    /**
     * 订单列表
     * @param array $wheres
     * @return mixed
     */
    public function all(array $wheres = []);

    /**
     * 仲裁订单列表
     * @param array $wheres
     * @return mixed
     */
    public function arbitrateList(array $wheres = []);

    /**
     * 投诉订单列表
     * @param array $wheres
     * @return mixed
     */
    public function complainList(array $wheres = []);

    /**
     * 预加载订单所有信息
     * @param Order $order
     * @return mixed
     */
    public function loadOrderAllInfo(Order $order);

    /**
     * 取消订单
     * @param $order_id
     * @return mixed
     */
    public function cancel($order_id);

}